/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package database;

import java.sql.Connection;

/**
 *
 * @author Valentina
 */
public class ConnectionUtil {

    private static MyDBDriver mdb = MyDBDriver.getMyDBDriver();

    public static Connection getConnection() {
        Connection con = null;
        //if (con == null) {
            mdb.createConnection();
            con = mdb.getConn();
        //}
        return con;
    }
}